using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ParcelTools
{
    /// <summary>
    /// <para>Copy Parcels</para>
    /// <para>Copies parcels from an input parcel fabric to a new parcel fabric in a new feature dataset.</para>
    /// <para>将宗地从输入宗地结构复制到新要素数据集中的新宗地结构。</para>
    /// </summary>    
    [DisplayName("Copy Parcels")]
    public class CopyParcels : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CopyParcels()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_parcel_fabric">
        /// <para>Input Parcel Fabric</para>
        /// <para>The input parcels that will be copied to a new parcel fabric. The input parcel fabric can be from a file geodatabase, an enterprise geodatabase connection, or a feature service.</para>
        /// <para>将复制到新宗地结构的输入宗地。输入宗地结构可以来自文件地理数据库、企业级地理数据库连接或要素服务。</para>
        /// </param>
        /// <param name="_target_database">
        /// <para>Target Database</para>
        /// <para>The geodatabase in which the new parcel fabric will be created. The geodatabase can be a file or an enterprise geodatabase.</para>
        /// <para>将在其中创建新宗地结构的地理数据库。地理数据库可以是文件地理数据库，也可以是企业级地理数据库。</para>
        /// </param>
        public CopyParcels(object _in_parcel_fabric, object _target_database)
        {
            this._in_parcel_fabric = _in_parcel_fabric;
            this._target_database = _target_database;
        }
        public override string ToolboxName => "Parcel Tools";

        public override string ToolName => "Copy Parcels";

        public override string CallName => "parcel.CopyParcels";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_parcel_fabric, _target_database, _out_dataset_name, _out_fabric_name, _out_dataset, _out_parcel_fabric];

        /// <summary>
        /// <para>Input Parcel Fabric</para>
        /// <para>The input parcels that will be copied to a new parcel fabric. The input parcel fabric can be from a file geodatabase, an enterprise geodatabase connection, or a feature service.</para>
        /// <para>将复制到新宗地结构的输入宗地。输入宗地结构可以来自文件地理数据库、企业级地理数据库连接或要素服务。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Parcel Fabric")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_parcel_fabric { get; set; }


        /// <summary>
        /// <para>Target Database</para>
        /// <para>The geodatabase in which the new parcel fabric will be created. The geodatabase can be a file or an enterprise geodatabase.</para>
        /// <para>将在其中创建新宗地结构的地理数据库。地理数据库可以是文件地理数据库，也可以是企业级地理数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Database")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _target_database { get; set; }


        /// <summary>
        /// <para>Feature Dataset Name</para>
        /// <para>The name of the feature dataset that will be created for the new parcel fabric.</para>
        /// <para>将为新宗地结构创建的要素数据集的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Feature Dataset Name")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_dataset_name { get; set; } = null;


        /// <summary>
        /// <para>Parcel Fabric Name</para>
        /// <para>The name of the new parcel fabric.</para>
        /// <para>新宗地结构的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Parcel Fabric Name")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _out_fabric_name { get; set; } = null;


        /// <summary>
        /// <para>Output Feature Dataset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_dataset { get; set; }


        /// <summary>
        /// <para>Output Parcel Fabric</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Parcel Fabric")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_parcel_fabric { get; set; }


        public CopyParcels SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}